package cn.controller.order;

import cn.service.orderService.OrderServiceImpl.OrderSettingServiceImpl;
import entity.orderEntity.OrderSetting;
import entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 朱颢阳
 * @description
 * @time 2024/8/24 16:46
 */
@RestController
@CrossOrigin
@RequestMapping("/order")
public class OrderSettingController {
    @Autowired
    OrderSettingServiceImpl service;
    @RequestMapping("/setorder_setting")
    public Result setorder_setting(@RequestBody OrderSetting orderSetting){
        return service.setorder_setting(orderSetting);
    }
    @RequestMapping("/getsetting")
    public Result getsetting(){
        return service.getsetting();
    }
    @RequestMapping("/getautocomplete")
    public Result getautocomplete(){
        return service.getautocomplete();
    }
}
